package com.uzai.console.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.uzai.console.dto.app.customlink.AppCustomLinkQuery;
import com.uzai.console.entity.AppCustomLink;
import com.uzai.console.entity.CmsCustomLink;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AppCustomLinkMapper {
    List<AppCustomLink> findByList(Page<AppCustomLink> page, @Param("query") AppCustomLinkQuery appCustomLinkQuery);
    List<AppCustomLink> findByList(@Param("query") AppCustomLinkQuery appCustomLinkQuery);

    void insertSelective(AppCustomLink record);

    AppCustomLink selectById(@Param("id") Long id, @Param("merId") Long merId);

    void updateByIdSelective(AppCustomLink record);

    void deleteById(@Param("id") Long id, @Param("merId") Long merId);

    AppCustomLink selectByName(@Param("name") String name, @Param("merId") Long merId);

    List<AppCustomLink> selectByMer(Long merId);

}
